var ORDER = function() 
{
	var o = {};
	
	o.run = function()
	{
		o.ordercheck();
	}
	
	o.ordercheck = function(){
		
		$.get('/Api/order/ordercheck' , {id:id} , function(ret){
			if( ret.status == true){
				template.helper('dateFormat', function(time){
					return getLocalTime(time);
				});
				var html = template('payall-list-tql',ret);
				$('#payall').append(html);
				var html1 = template('payno-list-tql',ret);
				$('#payno').append(html1);
				var html2 = template('payyes-list-tql',ret);
				$('#payyes').append(html2);
				var html3 = template('wareno-list-tql',ret);
				$('#wareno').append(html3);
				var html4 = template('wareyes-list-tql',ret);
				$('#wareyes').append(html4);
				
			}
		});
	}
	
	o.orderinfocheck = function(){
		
		$.get('/Api/order/orderinfo' , {order_id:order_id} , function(ret){
			if( ret.status == true){
				template.helper('dateFormat', function(time){
					return getLocalTime(time);
				});
				var address = template('address-list-tql',ret);
				$('#address-show').append(address);
				var html = template('paynow-list-tql',ret);
				$('#paynow').append(html);
				
			}
		});
	}
	
	return o;
}();




